// components/ImgCard/imgCard.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    src: String,
    title: String,
    handleTap: Function
  },
  attached(){
    console.log('attached', this)
  },
  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onImgTap: function(){
      console.log('this', this)
      this.triggerEvent('handleImgTap', {
        id: this.properties.src
      }, {
        bubbles: false
      });
    }

  }
})
